Package netscape.ldap.client
Class JDAPFilter
java.lang.Object
netscape.ldap.client.JDAPFilter
- Direct Known Subclasses:
JDAPFilterAVA,JDAPFilterExtensible,JDAPFilterNot,JDAPFilterPresent,JDAPFilterSet,JDAPFilterSubString
This class implements the filter.
Filter ::= CHOICE {
and [0] SET OF Filter,
or [1] SET OF Filter,
not [2] Filter,
equalityMatch [3] AttributeValueAssertion,
substrings [4] SubstringFilter,
greaterOrEqual [5] AttributeValueAssertion,
lessOrEqual [6] AttributeValueAssertion,
present [7] AttributeType,
approxMatch [8] AttributeValueAssertion
}
- Version:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract BERElementGets the ber representation of filter.static JDAPFilterConstructs filter from filter string specified in RFC1558.static JDAPFilterConstructs the filter computation.static JDAPFiltergetFilterItem(String item) Gets filter item.static JDAPFilter[]getFilterList(String list) Parses a list of filtersabstract StringtoString()Retrieves the string representation of filter.
-
Constructor Details
-
JDAPFilter
public JDAPFilter()Constructs a empty filter.
-
-
Method Details
-
getFilter
Constructs filter from filter string specified in RFC1558.<filter> ::= '(' <filtercomp> ')' <filtercomp> ::= <and> | <or> | <not> | <item> <and> ::= '&' <filterlist> <or> ::= '|' <filterlist> <not> ::= '!' <filter> <filterlist> ::= <filter> | <filter> <filterlist> <item> ::= <simple> | <present> | <substring> <simple> ::= <attr> <filtertype> <value> <filtertype> ::= <equal> | <approx> | <greater> | <less> <equal> ::= '=' <approx> ::= '~=' <greater> ::= '>=' <less> ::= '<=' <present> ::= <attr> '=*' <substring> ::= <attr> '=' <initial> <any> <final> <initial> ::= NULL | <value> <any> ::= '*' <starval> <starval> ::= NULL | <value> '*' <starval> <final> ::= NULL | <value>- Parameters:
filter- filter string as specified in RFC1558- Returns:
- filter
-
getFilterComp
Constructs the filter computation.- Parameters:
f- filter string within brackets- Returns:
- filter
-
getFilterList
Parses a list of filters- Parameters:
list- filter list (i.e. (filter)(filter)...)- Returns:
- list of filters
-
getFilterItem
Gets filter item.- Parameters:
item- filter item string- Returns:
- filter
-
getBERElement
Gets the ber representation of filter.- Returns:
- ber representation of filter
-
toString
Retrieves the string representation of filter.
-